package com.ktjiaoyu.mapper;

import com.ktjiaoyu.entity.SysRole;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface SysRoleMapper {
    /**
     * 获取角色列表
     * @return
     */
    public List<SysRole> getAll();

    //根据id查询
    public SysRole getById( Long id);

    //添加
    public int insert(SysRole sysRole);

    //修改
    public int update(SysRole sysRole);

    //删除
    public int delete(Integer id);

    public SysRole getCode(@Param("code") String code);

}
